package com.sh.data.engine.application.model.request.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author jiayi.wjy
 * @description: 文件采集获取一键建表sql
 * @date 2022/9/27 下午4:57
 */
@Data
@Schema
public class DocumentCaptureCreateSqlRequest {

    @Schema(description = "文件名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "文件名不能为空")
    private String fileName;

    @Schema(description = "列名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "列表不能为空")
    private List<String> columnNames;
}
